﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowToDo.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Flow.FlowToDo" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>    
    <script type="text/javascript">
        function showPage(url) {
            window.showModalDialog(encodeURI(url), "", "dialogWidth=960px;dialogHeight=700px");
            //window.open(url);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align:right; margin-bottom:5px;">
        <asp:Button ID="btnRefresh" runat="server" Text="刷新" onclick="btnRefresh_Click"></asp:Button>
    </div>
    <div>  
        <asp:GridView ID="gvToDoList" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
            Width="100%" DataKeyNames="FlowID,FlowInstanceID" 
            onrowdatabound="gvToDoList_RowDataBound">            
            <Columns>
                <asp:BoundField HeaderText="流程名称" DataField="FlowName" ItemStyle-Width="150px"/>
                <asp:BoundField HeaderText="主题" DataField="Subject" ItemStyle-Width="150px"/>
                <asp:BoundField HeaderText="创建人" DataField="CreateUser" ItemStyle-Width="60px"/>
                <asp:BoundField HeaderText="创建时间" DataField="CreateDate" ItemStyle-Width="100px"/>
                <asp:BoundField HeaderText="上一步骤" DataField="StepName" ItemStyle-Width="120px"/>
                <asp:BoundField HeaderText="处理人" DataField="OperatorInfo" ItemStyle-Width="80px"/>
                <asp:BoundField HeaderText="处理时间" DataField="OperationDate" ItemStyle-Width="100px"/>
                <asp:BoundField HeaderText="处理操作" DataField="OperationName" ItemStyle-Width="80px"/>
                <asp:BoundField HeaderText="处理意见" DataField="Opinion" />
                <asp:TemplateField HeaderText="操作"  ItemStyle-Width="60px">
                    <ItemTemplate>
                        <asp:Button ID="btnOpen" runat="server" Text="打开" Height="18px"></asp:Button>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
            <RowStyle BackColor="#FAFAFA" ForeColor="#333333" Height="20px" HorizontalAlign="Center"/>
            <EmptyDataTemplate>
                <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有需要处理的待办任务。</div>        
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
